import { http } from "@/utils/http";
import { baseUrlApi } from "../utils";

// 智能测评

interface ClocMsg {
  status: number;
  msg: string;
  data: object;
  success: boolean;
}

interface Ranking {
  status: number;
  msg: string;
  data: {
    comprehensiveAbility: string;
    studyTotal: number;
    analysisTotal: number;
    practiceTotal: number;
    managementTotal: number;
    applicateTotal: number;
    exploreTotal: number;
    total: number;
    totalRanking: number;
    detail: string;
    moudleRanking: string;
  };
  success: boolean;
}

// 获取打卡记录
export const GetClockInRecord = (params: string) => {
  return http.request<ClocMsg>(
    "get",
    baseUrlApi("/IntelligentEvaluation/ClockInRecord?" + params)
  );
};

// 获取得分和班级排行
export const GetScoreAndRanking = () => {
  return http.request<Ranking>(
    "get",
    baseUrlApi("/IntelligentEvaluation/GetScoreAndRanking")
  );
};

// 智能测评答案查询接口
export const IntelligentEvaluationGetScoreDetail = (params: string) => {
  return http.request<any>(
    "get",
    baseUrlApi("/IntelligentEvaluation/GetScoreDetail?" + params)
  );
};

// 查看班级排名
export const IntelligentEvaluationRankingDetail = (params: string) => {
  return http.request<any>(
    "get",
    baseUrlApi("/IntelligentEvaluation/RankingDetail?" + params)
  );
};

// 测试十万条数据  可删

// export const TestGetTest = () => {
//   return http.request<any>("get", baseUrlApi("/Test/GetTest"));
// };
